import Vue from 'vue'
import Element, { Message } from 'element-ui'
Vue.component(Message.name, Message)

import 'element-ui/lib/theme-chalk/index.css';
import '@jiess/main/style/sass/element.scss'

import en from 'element-ui/lib/locale/lang/en';
import zh from 'element-ui/lib/locale/lang/zh-CN';
const locales = { en, zh }

import mapping from '../../base/mapping';
const config = { size: 'small' }
if (mapping.J_sys.START_I18N) config.locale = locales[mapping.J_lanCode()]
Vue.use(Element, config)
